import type { App } from "vue";
import * as antIcons from "@ant-design/icons-vue";

export const setupAntdIcon = (app: App<Element>): void => {
    // 注册组件
    Object.keys(antIcons).forEach((key) => {
        app.component(key, antIcons[key as keyof typeof antIcons]);
    });

    // 使用组件
    // <component :is="menu.icon" />
    // <component is="PieChartOutlined" />
}
